var express = require('express');
var userController = require('../controllers/userController');
var router = express.Router();

/* GET users listing. */
router.post('/adminapi/users/login', userController.login);

router.post('/adminapi/users', userController.add);

router.get('/adminapi/users', userController.getList);

router.put('/adminapi/users/:id', userController.update);

router.delete('/adminapi/users', userController.delete);

module.exports = router;